<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Change Password</h6>
	<?php 
		$formAttrib = array('id' => 'change_password', 'class' => 'admin-form password');
		$oldPasswordAttrib = array('name' => 'oldpassword', 'value' => '', 'id' => 'oldpassword');
		$newPasswordAttrib = array('name' => 'newpassword', 'value' => '', 'id' => 'newpassword');
		$retypePasswordAttrib = array('name' => 'retype', 'value' => '', 'id' => 'retype');

		
		echo form_open('post/change_password', $formAttrib);
		
	?>
    
    <div class="input-block">
    <?php
		echo form_label('Old password :', 'oldpassword');
		echo form_input($oldPasswordAttrib);		
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('New password :', 'newpassword');
		echo form_input($newPasswordAttrib);		
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('Re-type new password :', 'retype');
		echo form_input($retypePasswordAttrib);		
	?>
    </div>
    
  
   
    <div class="input-block">
   		<?php echo form_submit('update', 'Update'); ?>
    </div>

</div>
</div>